 
import PlaceSearch from "./Place/PlaceSearch.vue";
import PlaceForm from "./Place/PlaceForm.vue";
import Sizeinput from "./Place/Sizeinput.vue";
//站点app添加的表单
import SiteAppForm from "./Place/SiteAppForm.vue";
//广告投放列表的搜索表单
import SetPlaceSearch from "./Place/SetPlaceSearch.vue";
//广告投放表单 
import SetPlaceForm from "./Place/SetPlaceForm.vue";
//筛选广告位的多选择
import SetPlaceMutilSelect from "./Place/SetPlaceMutilSelect.vue";
// 新增广告媒体资料的表单
import MediasAddForm from "./Place/MediasAddForm.vue";
import MediasFormTxt from "./Place/MediasFormTxt.vue";
import MediasFormImage from "./Place/MediasFormImage.vue";
import MediasFormHtml from "./Place/MediasFormHtml.vue";
import MediasFormFlash from "./Place/MediasFormFlash.vue";
import MediasFormStream from "./Place/MediasFormStream.vue";
import MediasSearch from "./Place/MediasSearch.vue";
import MediasFormVideo from "./Place/MediasFormVideo.vue";
import SelectMedias from "./Place/SelectMedias.vue";
import TableMediasList from "./Place/TableMediasList.vue";
import TableAdsplaceList from "./Place/TableAdsplaceList.vue";
import DialogAdsplaceCode from "./Place/DialogAdsplaceCode.vue";
import XfplayAppAdverteSetting from "./AppSetting/XfplayAppAdverteSetting.vue";
import LybrowersAdverteSetting from "./AppSetting/LybrowersAdverteSetting.vue";
import AppSettingForm from "./AppSetting/AppSettingForm.vue";
import Xfdetection from "./AppSetting/Xfdetection.vue";
// 
import PreviewMediasScreen from "./Preview/PreviewMediasScreen.vue";
import OverlyDataReportView from "./Report/OverlyDataReportView.vue";
import AdverteDataReportView from "./Report/AdverteDataReportView.vue";
import MediasDataReportView from "./Report/MediasDataReportView.vue";
/**信息流内容样式组件 */
import StreamFormSan from "./Place/StreamFormSan.vue";
import StreamViewSan from "./Place/StreamViewSan.vue";
import TimeProgress from "./Place/TimeProgress.vue";

import SiteAPI from './Place/SiteAPI.js';
import Options from "./Place/Options";
import PlaceAPI from './Place/PlaceAPI';
import ReportApi from './Report/ReportApi';
/**
 * 把组件加入到全局Vue里面，之后可以在任何地方通过html标签方式
 * 调用组件
 */
if (typeof window !== 'undefined' && window.Vue) {
    //广告位列表的筛选 项
    window.SiteAPI = SiteAPI;
    window.Options = Options;
    window.PlaceAPI = PlaceAPI;
    window.ReportApi = ReportApi;
    /**
     * <place-search  />
     */
    window.Vue.component('dialog-adsplace-code', DialogAdsplaceCode);

    window.Vue.component('place-search', PlaceSearch);
    //广告位的新增表单
    window.Vue.component('place-form', PlaceForm);
    //广告位的选择组件联动切换 尺寸和手动输入
    window.Vue.component('place-size-input', Sizeinput);
    //添加站点和app的表单
    window.Vue.component('site-app-form', SiteAppForm);
    //广告投放列表 筛选表单 SetPlaceSearch
    window.Vue.component('set-place-search', SetPlaceSearch);
    //广告投放 表单 SetPlaceSearch
    window.Vue.component('set-place-form', SetPlaceForm);
    //筛选广告位的多选择

    window.Vue.component('select-medias', SelectMedias);
    /**
     * <set-place-mutil-select  plattype="1" />
     */
    window.Vue.component('set-place-mutil-select', SetPlaceMutilSelect);
    // 新增广告媒体资料的表单
    window.Vue.component('medias-search', MediasSearch);
    window.Vue.component('medias-add-form', MediasAddForm);
    window.Vue.component('medias-form-txt', MediasFormTxt);
    window.Vue.component('medias-form-image', MediasFormImage);
    window.Vue.component('medias-form-html', MediasFormHtml);
    window.Vue.component('medias-form-flash', MediasFormFlash);
    window.Vue.component('medias-form-video', MediasFormVideo);
    window.Vue.component('medias-form-stream', MediasFormStream);
    window.Vue.component('stream-form-san', StreamFormSan);
    window.Vue.component('stream-view-san', StreamViewSan);
    // 分隔符
    window.Vue.component('table-medias-list', TableMediasList);
    window.Vue.component('table-adsplace-list', TableAdsplaceList);
    //app广告设置参数
    window.Vue.component('app-setting-form', AppSettingForm);
    window.Vue.component('xfplay-detection', Xfdetection); 
    window.Vue.component('xfplay-app-adverte-setting', XfplayAppAdverteSetting);
    window.Vue.component('lybrowers-adverte-setting', LybrowersAdverteSetting);

    // 广告物料素材 预览
    window.Vue.component('preview-medias-screen', PreviewMediasScreen);
    //报表信息
    window.Vue.component('overly-data-report-view', OverlyDataReportView);
    window.Vue.component('adverte-data-report-view', AdverteDataReportView);
    window.Vue.component('medias-data-report-view', MediasDataReportView);
    window.Vue.component('time-progress', TimeProgress); 
}
